package cn.scnu.component.exception;


import cn.scnu.common.error.IErrorInfo;

/**
 * @author hqz
 * @updateTime 2022/9/8 13:44
 * @description  断言处理类，用于抛出各种API异常
 */
public class Asserts {
    public static void fail(String message) {
        throw new ApiException(message);
    }

    public static void fail(IErrorInfo errorInfo) {
        throw new ApiException(errorInfo);
    }
}
